Optimal. Leaf size=116 \[ \frac{2 a^2 n^2 x \left (c+d x^n\right )^{-1/n}}{c^3 (n+1) (2 n+1)}+\frac{2 a n x \left (a+b x^n\right ) \left (c+d x^n\right )^{-\frac{1}{n}-1}}{c^2 (n+1) (2 n+1)}+\frac{x \left (a+b x^n\right )^2 \left (c+d x^n\right )^{-\frac{1}{n}-2}}{c (2 n+1)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0360545, antiderivative size = 116, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.08, Rules used = {378, 191} \[ \frac{2 a^2 n^2 x \left (c+d x^n\right )^{-1/n}}{c^3 (n+1) (2 n+1)}+\frac{2 a n x \left (a+b x^n\right ) \left (c+d x^n\right )^{-\frac{1}{n}-1}}{c^2 (n+1) (2 n+1)}+\frac{x \left (a+b x^n\right )^2 \left (c+d x^n\right )^{-\frac{1}{n}-2}}{c (2 n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 378
Rule 191
Rubi steps
\begin{align*} \int \left (a+b x^n\right )^2 \left (c+d x^n\right )^{-3-\frac{1}{n}} \, dx &=\frac{x \left (a+b x^n\right )^2 \left (c+d x^n\right )^{-2-\frac{1}{n}}}{c (1+2 n)}+\frac{(2 a n) \int \left (a+b x^n\right ) \left (c+d x^n\right )^{-2-\frac{1}{n}} \, dx}{c (1+2 n)}\\ &=\frac{x \left (a+b x^n\right )^2 \left (c+d x^n\right )^{-2-\frac{1}{n}}}{c (1+2 n)}+\frac{2 a n x \left (a+b x^n\right ) \left (c+d x^n\right )^{-1-\frac{1}{n}}}{c^2 (1+n) (1+2 n)}+\frac{\left (2 a^2 n^2\right ) \int \left (c+d x^n\right )^{-1-\frac{1}{n}} \, dx}{c^2 (1+n) (1+2 n)}\\ &=\frac{x \left (a+b x^n\right )^2 \left (c+d x^n\right )^{-2-\frac{1}{n}}}{c (1+2 n)}+\frac{2 a n x \left (a+b x^n\right ) \left (c+d x^n\right )^{-1-\frac{1}{n}}}{c^2 (1+n) (1+2 n)}+\frac{2 a^2 n^2 x \left (c+d x^n\right )^{-1/n}}{c^3 (1+n) (1+2 n)}\\ \end{align*}
Mathematica [A] time = 0.073117, size = 113, normalized size = 0.97 \[ \frac{x \left (c+d x^n\right )^{-\frac{1}{n}-2} \left (a^2 \left (c^2 \left (2 n^2+3 n+1\right )+2 c d n (2 n+1) x^n+2 d^2 n^2 x^{2 n}\right )+2 a b c x^n \left (2 c n+c+d n x^n\right )+b^2 c^2 (n+1) x^{2 n}\right )}{c^3 (n+1) (2 n+1)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.577, size = 0, normalized size = 0. \begin{align*} \int \left ( a+b{x}^{n} \right ) ^{2} \left ( c+d{x}^{n} \right ) ^{-3-{n}^{-1}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b x^{n} + a\right )}^{2}{\left (d x^{n} + c\right )}^{-\frac{1}{n} - 3}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.58541, size = 468, normalized size = 4.03 \begin{align*} \frac{{\left (2 \, a^{2} d^{3} n^{2} + b^{2} c^{2} d +{\left (b^{2} c^{2} d + 2 \, a b c d^{2}\right )} n\right )} x x^{3 \, n} +{\left (6 \, a^{2} c d^{2} n^{2} + b^{2} c^{3} + 2 \, a b c^{2} d +{\left (b^{2} c^{3} + 6 \, a b c^{2} d + 2 \, a^{2} c d^{2}\right )} n\right )} x x^{2 \, n} +{\left (6 \, a^{2} c^{2} d n^{2} + 2 \, a b c^{3} + a^{2} c^{2} d +{\left (4 \, a b c^{3} + 5 \, a^{2} c^{2} d\right )} n\right )} x x^{n} +{\left (2 \, a^{2} c^{3} n^{2} + 3 \, a^{2} c^{3} n + a^{2} c^{3}\right )} x}{{\left (2 \, c^{3} n^{2} + 3 \, c^{3} n + c^{3}\right )}{\left (d x^{n} + c\right )}^{\frac{3 \, n + 1}{n}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]